﻿using System;
using System.Collections.Generic;
using UnityEngine;

namespace Unity.Hotfix
{
    public class UIWindow
    {
        /// <summary>
        /// 此界面的 Prefab 资源路径
        /// </summary>
        public virtual string prefabPath { get; set; }

        public GameObject skin { get; private set; }

        public virtual void OnInitWnd(GameObject obj) {
            skin = obj;
        }

        public virtual void OnShowWnd()
        {
            skin.SetActive(true);
        }

        public virtual void OnAtTopWnd() { }

        public virtual void OnCloseWnd() { }

        public string GetPrefabPath()
        {
            return prefabPath;
        }
    }
}
